package com.jy.show.service.impl;

import com.jy.show.bean.User;
import com.jy.show.dao.UserMapper;
import com.jy.show.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int login(User user) {
        return userMapper.login(user);
    }

    @Override
    public int UserLogin(User user) {
        return userMapper.UserLogin(user);
    }

    @Override
    public int regist(User user) {
        return userMapper.regist(user);
    }

    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }
}
